home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / batch / ask_wait / demo.bat < prev   
DOS Batch File  |  1988-08-05  |  437b  |  23 lines

  1. ECHO OFF
  2. ASK&WAIT "Run A, P, or X ? X chosen after $s seconds" APX 25 x
  3. echo  
  4. REM Check Higher Errorlevels First !
  5. if errorlevel 255 goto BREAK
  6. if errorlevel 3 goto X
  7. if errorlevel 2 goto P
  8. if errorlevel 1 goto A
  9. echo ERRORLEVEL IS ZERO !
  10. goto END
  11. :BREAK
  12. echo Break! (Run without breaking out to restore the cursor)
  13. goto END
  14. :A
  15. echo Run Program A
  16. goto END
  17. :P
  18. echo Run Program P
  19. goto END
  20. :X
  21. echo Run Program X
  22. :END
  23.